package com.codemonkey.lq.common.operators;

import java.util.Set;
import java.util.Map.Entry;

public final class PropsFileReader extends PropsFileOperater {
    public PropsFileReader(String filePath) {
	super(filePath);
    }

    public String get(String key) {
	return props.getProperty(key);
    }

    public Set<Entry<Object, Object>> getAllEntity() {
	Set<Entry<Object, Object>> entrySet = props.entrySet();
	return entrySet;
    }

    // public Map<String, String> getKeyVals() {
    // return convertEntries(getAllEntity());
    // }

    // private Map<String, String> convertEntries(Set<Entry<Object, Object>>
    // entrys) {
    // Map<String, String> map = new HashMap<String, String>(entrys.size());
    //
    // for (Entry<Object, Object> entry : entrys) {
    // String key = ((String) entry.getKey()).split("\\.")[1];
    // String value = (String) entry.getValue();
    // map.put(key, value);
    // }
    //
    // return map;
    // }
}
